package com.mindata.blockchain.core.model;

import com.mindata.blockchain.core.model.base.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @author 王鹏
 */
@Entity
@Table(name = "ticket")
public class TicketEntity extends BaseEntity {
    /**
     * 票名
     */
    private String ticketName;

    /**
     * 景区名称
     */
    private String sceneryName;

    /**
     * 业务id，票的唯一标识
     */
    private String messageId;


    /**
     * 票的状态： 0： 可购买  1：占用   2：  已被购买
     */
    private Integer status;

    /**
     * 价格
     */
    private BigDecimal price;

    public String getTicketName() {
        return ticketName;
    }

    public void setTicketName(String ticketName) {
        this.ticketName = ticketName;
    }

    public String getSceneryName() {
        return sceneryName;
    }

    public void setSceneryName(String sceneryName) {
        this.sceneryName = sceneryName;
    }

    public String getMessageId() {
        return messageId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setMessageId(String messageId) {
        this.messageId = messageId;
    }


    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    @Override
    public String toString() {
        return "TicketEntity{" +
                "ticketName='" + ticketName + '\'' +
                ", sceneryName='" + sceneryName + '\'' +
                ", messageId='" + messageId + '\'' +
                '}';
    }
}
